package com.cwj;

/**
 * @author chenwujie
 * @date 2021-03-03 10:43
 */
public class BreakOrContinueTest {
    public static void main(String[] args) {
        int test = test();
        System.out.println("test: " + test);
        int i = 0;
        retry:
        for(;;){
            i++;

            for(;;){
                i++;
                if(i % 3 == 0){
                    System.out.println(i);
                    continue retry;
                }
                if(i % 10 == 0) {
                    System.out.println(i);
                    break retry;
                }
            }
        }
    }

    public static int  test(){
        try{
            return 3;
        }finally {
            return 5;
        }
    }
}
